Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ability to reuse trigger in different templates; #285

Merged

Conversation

Antondomashnev
Copy link
Contributor

@Antondomashnev Antondomashnev commented Jun 25, 2016

Hi All,
First of all thanks for the great tool @czechboy0, it really rocks!

In my current setup, I have four syncers that are using two same triggers. And to create those triggers I had to write same things four times, to improve the UX for that kind of setup I would like to introduce the screen to select trigger from already created triggers list.

Thit PR makes following changes:

  • if the user clicks + button to add a trigger to the template the alert will appear with an option to select from already existed or create a new one image
  • If the user clicks the Add existed new screen will appear with the list of all available triggers image On that screen user can select multiple triggers to add to the template, the user can edit specific trigger or delete or from the database.
  • On the build template screen in triggers table view now delete button only removes the trigger from the table view but not from the database.

Looking forward to hearing your thoughts.

P.S. also have the following idea to have predefined triggers already in Builda, so user doesn't have to type run script for CocoaPods or etc.

@czechboy0
Copy link
Member

@Antondomashnev This is amazing stuff, thanks so much! 👍 It actually fixes a long standing task: #167

Let me give this a try and I'll report with comments later. Regarding pre-defined triggers that would ship with Buildasaur, I think that's a great idea, but please create a separate issue for that and put your thoughts there, to keep these two issues separate.

Thanks! 😊


super.prepareForSegue(segue, sender: sender)
}

@IBAction func addTriggerButtonClicked(sender: AnyObject) {
self.editTrigger(nil)
let buttons = ["Add new", "Add existed", "Cancel"]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we please rename that to Add existing?

Copy link
Contributor Author

@Antondomashnev Antondomashnev Jun 26, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@Antondomashnev
Copy link
Contributor Author

@czechboy0 thanks for the feedback, these comments are fixed and the PR ready to be merged 🚀

@Antondomashnev
Copy link
Contributor Author

Hi @czechboy0 any news when it can be merged, can I help to speed up the process somehow? Thanks

@czechboy0
Copy link
Member

Hey, apologies I'm at a vacation at the moment, so I haven't yet had a chance to test it locally. Should be able to merge after testing in about a week, thanks for your work on this! :)

@Antondomashnev
Copy link
Contributor Author

Ah, then it's my apologies, sorry for interrupting, have a good holiday =)

@czechboy0
Copy link
Member

Ok, I'm back from vacation now :) I checked out the code, looks great, thanks so much! 😊 Just one little thing: the layout seems to be slightly off on the build template screen, see screenshots before and after (the plus button for adding a trigger has been shifted down which offsets the whole window's layout to the point that the top and bottom content is getting clipped).

Original:
screenshot 2016-07-11 12 06 45

Changed:
screenshot 2016-07-11 12 06 14

So if you could just fix that I'll be happy to merge this.

@Antondomashnev
Copy link
Contributor Author

@czechboy0 thanks to pointing it out, I'll definitely update the PR with fix soon =)

@Antondomashnev
Copy link
Contributor Author

@czechboy0 done =)

@czechboy0
Copy link
Member

Great, thanks! 👍

@czechboy0 czechboy0 merged commit fc25bfe into buildasaurs:master Jul 13, 2016
@Antondomashnev Antondomashnev deleted the antondomashnev/trigger_templates branch July 13, 2016 10:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants